
#[derive(Debug)]
struct Family<数字,字符>{
    qty:数字,
    name:字符
}
impl<数字,String>  Family<数字,String> {
    fn double(&self){
        &self.qty;
    }
}
impl  Family<i32,String> {
    fn get(&self){
        &self.qty;
    }
}


fn main() {
    let family = Family{
        qty: 10,
        name: "A".to_string(),
    };
    println!("{:#?}", family);
    //println!("{}", family.double());

    let mf= Family{
        qty:"10个",
        name:"爸爸，妈妈，儿子，女儿"
    };
    println!("{:#?}", mf);
}
